﻿function uploadError(sender, args) {
    document.getElementById('lblStatus').innerText = args.get_fileName(), "<span style='color:red;'>" + args.get_errorMessage() + "</span>";
}

function StartUpload(sender, args) {
    document.getElementById('lblStatus').innerText = 'Carga Iniciada.';
}

function UploadComplete(sender, args) {
    var filename = args.get_fileName();
    var contentType = args.get_contentType();
    //var text = "Tamaño de " + filename + " es " + args.get_length() + " bytes";
    var text = "Tamaño :" + args.get_length() + " bytes";

    if (contentType.length > 0) {
        text += " Tipo :'" + contentType + "'.";
    }
    document.getElementById('lblStatus').innerText = text;
}